import request from "../../utils/request";
// pages/video/video.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    videoGroupList:[],//导航的标签数据
    navId:'',//导航的标识
    videoList:[],//视频列表数据
    videoId:'',//视频id标识
    videoUpdateTime:[],//记录video播放的时长
    isTriggered:false,//标识下拉刷新是否被触发
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    //判断用户是否登录
    let userInfo = wx.getStorageSync('userInfo');
    if (!userInfo){
      wx.showToast({
        title:'请先登录',
        icon:'none',
        success:()=>{
          wx.reLaunch({
            url:'/pages/login/login'
          })
        }
      })
    }
    //获取导航数据
    this.getVideoGroupListData();

  },

  //获取导航数据
  async getVideoGroupListData(){
    let videoGroupListData = await request('/video/group/list');
    this.setData({
      videoGroupList:videoGroupListData.data.slice(0,14),
      navId:videoGroupListData.data[0].id
    })
    this.getVideoList(this.data.navId);
  },
  //获取视频列表数据
  async getVideoList(navId){
    let videoListData = await request('/video/group',{id:navId});
    //关闭消息提示框
    wx.hideLoading();

    let index = 0;
    let videoList = videoListData.datas.map(item=>{
      item.id = index++;
      return item;
    })

    this.setData({
      videoList,
      isTriggered:false//关闭下拉刷新
    })
  },

  //点击切换导航的回调
  changeNav(event){
    let navId = event.currentTarget.id;//通过id想event传参的时候，如果传的是number，会自动转换成string
    // let nvaId = event.currentTarget.dataset.id;
    this.setData({
      navId:navId*1,//或者navId>>>0
      videoList:[]
    })
    wx.showLoading({
      title:'正在加载中'
    })
    //动态获取当前导航对应的视频数据
    this.getVideoList(this.data.navId);

  },

  //点击切换导航的回调
  handlePlay(event){
    //创建控制video标签实例对象
    let vid = event.currentTarget.id;
    //关闭上一个video视频
    //this.vid !== vid && this.videoContext && this.videoContext.stop();
    //this.vid = vid;
    //更新data中video的状态数据
    this.setData({
      videoId:vid
    })
    //创建控制video标签的实例对象
    this.videoContext = wx.createVideoContext(vid);
    //判断当前的视频之前是否播放过，是否有播放记录，如果有，跳转至指定的播放位置、
    let {videoUpdateTime} = this.data;
    let videoItem =videoUpdateTime.find(item=>item.vid===vid);

    if (videoItem){
      this.videoContext.seek(videoItem.currentTime);
    }
    this.videoContext.play();
  },

  //监听视频播放进度的回调,每0.25s触发一次
  handleTimeUpdate(event){
    // console.log(event);
    let videoTimeObj = {vid:event.currentTarget.id,currentTime:event.detail.currentTime};
    let {videoUpdateTime} = this.data;
    //判断记录播放时长的数组videoUpdateTime是否有当前视频的播放记录
    let  videoItem = videoUpdateTime.find(item => item.vid === videoTimeObj.vid);
    if (videoItem){
      videoItem.currentTime = event.detail.currentTime;
    }else {
      videoUpdateTime.push(videoTimeObj);
    }
    //更新videoUpdateTime的状态
    this.setData({
      videoUpdateTime
    })

  },

  //视频播放结束调用的回调
  handleEnded(event){
    //溢出记录播放时长数组中当前视频的对象
    let {videoUpdateTime} = this.data;
    videoUpdateTime.splice(videoUpdateTime.findIndex(item => item.vid === event.currentTarget.id),1);
    this.setData({
      videoUpdateTime
    })
  },

  //自定义下拉刷新的回调
  handleRefresher(){
    //再次发请求，获取最新的视频列表数据
    this.getVideoList(this.data.navId);
  },

  //自定义上拉触底的回调scroll-view
  handleToLower(){
    //数据分页：1、后端分页，2、前端分页
    //网易暂时没有提供对应接口
    console.log('发送请求||在前端截取最新的数据，追加到视频列表的后方');
    console.log('网易云音乐暂时没有提供分页的api')
    //模拟数据
    let newVideoList = [
      {
        "type": 1,
        "displayed": false,
        "alg": "onlineHotGroup",
        "extAlg": null,
        "data": {
          "alg": "onlineHotGroup",
          "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
          "threadId": "R_VI_62_E673F23CF8C435C2E0383F0BD4E2333E",
          "coverUrl": "https://p2.music.126.net/koOeD6K0GhgZRP2CsP0nrw==/109951165031798687.jpg",
          "height": 1080,
          "width": 1920,
          "title": "王力宏高能rap，每秒9.2个字",
          "description": "王力宏，那吾克热《飘向北方》，王力宏高能rap，每秒9.2个字，技惊四座。",
          "commentCount": 1333,
          "shareCount": 2757,
          "resolutions": [
            {
              "resolution": 240,
              "size": 14018637
            },
            {
              "resolution": 480,
              "size": 25068144
            },
            {
              "resolution": 720,
              "size": 36190479
            },
            {
              "resolution": 1080,
              "size": 62842317
            }
          ],
          "creator": {
            "defaultAvatar": false,
            "province": 110000,
            "authStatus": 0,
            "followed": false,
            "avatarUrl": "http://p1.music.126.net/etGq2xBRTHjlpjRhy4MUjA==/109951164872585491.jpg",
            "accountStatus": 0,
            "gender": 1,
            "city": 110101,
            "birthday": 657163775548,
            "userId": 19389416,
            "userType": 200,
            "nickname": "YouTube热门日推",
            "signature": "原ID：墨小宝\n商务：Moxb89757",
            "description": "",
            "detailDescription": "",
            "avatarImgId": 109951164872585490,
            "backgroundImgId": 109951165014183150,
            "backgroundUrl": "http://p1.music.126.net/svoc8XO1CPC9z2pDNrURvw==/109951165014183153.jpg",
            "authority": 0,
            "mutual": false,
            "expertTags": [
              "华语",
              "蓝调",
              "欧美"
            ],
            "experts": {
              "1": "音乐视频达人",
              "2": "生活图文达人"
            },
            "djStatus": 10,
            "vipType": 11,
            "remarkName": null,
            "avatarImgIdStr": "109951164872585491",
            "backgroundImgIdStr": "109951165014183153",
            "avatarImgId_str": "109951164872585491"
          },
          "urlInfo": {
            "id": "E673F23CF8C435C2E0383F0BD4E2333E",
            "url": "http://vodkgeyttp9.vod.126.net/vodkgeyttp8/2cFlSmqn_2981365382_uhd.mp4?ts=1606148735&rid=EBDC3C7B1DF9701FA908FF8A813C97FF&rl=3&rs=WquUCKzxhIKMvdsxzMnXFxbvhVVZruGj&sign=55a7acecfca6c415c337077a8558dff2&ext=bzWgNsHRGvJOZhCYx7pMtGcSDzZ2zG%2BEHubggpOkr54mxiEgvvW7HF4B7MTnacmE7%2ByXRc%2B3sS%2BMzFpdR1bkASDffdVTrA4X5ga7tt7pMMg5CbbmkL8iESfDTImo9waPSHg%2FkqSQovd42XuKSE%2F%2F85zNLMd7NGyFDBls4PpkwntuYmFRyATPkEbx7ETq2Pml6sOPWBuNjj4tfHaSHEoL8IVvELaDBo07DuAC%2FfbOqwQCiuQJktkktywPe6SBhwIy",
            "size": 62842317,
            "validityTime": 1200,
            "needPay": false,
            "payInfo": null,
            "r": 1080
          },
          "videoGroup": [
            {
              "id": -8013,
              "name": "#人气飙升榜#",
              "alg": "groupTagRank"
            },
            {
              "id": 25109,
              "name": "王力宏",
              "alg": "groupTagRank"
            },
            {
              "id": 3101,
              "name": "综艺",
              "alg": "groupTagRank"
            },
            {
              "id": 4101,
              "name": "娱乐",
              "alg": "groupTagRank"
            },
            {
              "id": 1100,
              "name": "音乐现场",
              "alg": "groupTagRank"
            },
            {
              "id": 58100,
              "name": "现场",
              "alg": "groupTagRank"
            },
            {
              "id": 5100,
              "name": "音乐",
              "alg": "groupTagRank"
            }
          ],
          "previewUrl": null,
          "previewDurationms": 0,
          "hasRelatedGameAd": false,
          "markTypes": null,
          "relateSong": [],
          "relatedInfo": null,
          "videoUserLiveInfo": null,
          "vid": "E673F23CF8C435C2E0383F0BD4E2333E",
          "durationms": 133560,
          "playTime": 2283815,
          "praisedCount": 20372,
          "praised": false,
          "subscribed": false
        }
      },
      {
        "type": 1,
        "displayed": false,
        "alg": "onlineHotGroup",
        "extAlg": null,
        "data": {
          "alg": "onlineHotGroup",
          "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
          "threadId": "R_VI_62_29D6E2F9BFDCAA3B53B53B82938F075A",
          "coverUrl": "https://p2.music.126.net/p_QNTxUM-Mteo3PEI_9QpA==/109951164375239521.jpg",
          "height": 720,
          "width": 1280,
          "title": "《Take me to your heart》，张学友《吻别》英文版翻唱",
          "description": "《Take me to your heart》，张学友《吻别》英文版翻唱。",
          "commentCount": 93,
          "shareCount": 980,
          "resolutions": [
            {
              "resolution": 240,
              "size": 41775617
            },
            {
              "resolution": 480,
              "size": 73238561
            },
            {
              "resolution": 720,
              "size": 100544930
            }
          ],
          "creator": {
            "defaultAvatar": false,
            "province": 320000,
            "authStatus": 0,
            "followed": false,
            "avatarUrl": "http://p1.music.126.net/Aee3d3QciFO_BmvMWUjFXw==/109951165135460839.jpg",
            "accountStatus": 0,
            "gender": 1,
            "city": 320200,
            "birthday": 892915200000,
            "userId": 529472748,
            "userType": 0,
            "nickname": "墨離--_--",
            "signature": "旧梦难言",
            "description": "",
            "detailDescription": "",
            "avatarImgId": 109951165135460830,
            "backgroundImgId": 109951165068102580,
            "backgroundUrl": "http://p1.music.126.net/pPMA8bXSgX966RPJ3ktIHw==/109951165068102570.jpg",
            "authority": 0,
            "mutual": false,
            "expertTags": null,
            "experts": {
              "1": "音乐视频达人"
            },
            "djStatus": 0,
            "vipType": 11,
            "remarkName": null,
            "avatarImgIdStr": "109951165135460839",
            "backgroundImgIdStr": "109951165068102570",
            "avatarImgId_str": "109951165135460839"
          },
          "urlInfo": {
            "id": "29D6E2F9BFDCAA3B53B53B82938F075A",
            "url": "http://vodkgeyttp9.vod.126.net/vodkgeyttp8/l5RWKhaD_2697348531_shd.mp4?ts=1606148735&rid=EBDC3C7B1DF9701FA908FF8A813C97FF&rl=3&rs=ARaOoQjQwlESIdOWXXDdkSqNWBbVpdqT&sign=9542b8211ba89b9bca3d3077638a138d&ext=bzWgNsHRGvJOZhCYx7pMtGcSDzZ2zG%2BEHubggpOkr54mxiEgvvW7HF4B7MTnacmE7%2ByXRc%2B3sS%2BMzFpdR1bkASDffdVTrA4X5ga7tt7pMMg5CbbmkL8iESfDTImo9waPSHg%2FkqSQovd42XuKSE%2F%2F85zNLMd7NGyFDBls4PpkwntuYmFRyATPkEbx7ETq2Pml6sOPWBuNjj4tfHaSHEoL8IVvELaDBo07DuAC%2FfbOqwQCiuQJktkktywPe6SBhwIy",
            "size": 100544930,
            "validityTime": 1200,
            "needPay": false,
            "payInfo": null,
            "r": 720
          },
          "videoGroup": [
            {
              "id": -10490,
              "name": "#72首经典英文歌曲#",
              "alg": "groupTagRank"
            },
            {
              "id": 1100,
              "name": "音乐现场",
              "alg": "groupTagRank"
            },
            {
              "id": 58100,
              "name": "现场",
              "alg": "groupTagRank"
            },
            {
              "id": 5100,
              "name": "音乐",
              "alg": "groupTagRank"
            }
          ],
          "previewUrl": null,
          "previewDurationms": 0,
          "hasRelatedGameAd": false,
          "markTypes": null,
          "relateSong": [
            {
              "name": "Take Me To Your Heart",
              "id": 4173190,
              "pst": 0,
              "t": 0,
              "ar": [
                {
                  "id": 96269,
                  "name": "Michael Learns To Rock",
                  "tns": [],
                  "alias": []
                }
              ],
              "alia": [],
              "pop": 100,
              "st": 0,
              "rt": "600902000000809398",
              "fee": 1,
              "v": 32,
              "crbt": null,
              "cf": "",
              "al": {
                "id": 421938,
                "name": "Take Me to Your Heart",
                "picUrl": "http://p4.music.126.net/Vi3HrimsCpdrn1s6vWQxYQ==/19141397928160786.jpg",
                "tns": [],
                "pic_str": "19141397928160786",
                "pic": 19141397928160784
              },
              "dt": 239000,
              "h": {
                "br": 320000,
                "fid": 0,
                "size": 9562949,
                "vd": -21700
              },
              "m": {
                "br": 192000,
                "fid": 0,
                "size": 5737786,
                "vd": -19200
              },
              "l": {
                "br": 128000,
                "fid": 0,
                "size": 3825205,
                "vd": -17900
              },
              "a": null,
              "cd": "1",
              "no": 3,
              "rtUrl": null,
              "ftype": 0,
              "rtUrls": [],
              "djId": 0,
              "copyright": 1,
              "s_id": 0,
              "rtype": 0,
              "rurl": null,
              "mst": 9,
              "cp": 14002,
              "mv": 5308235,
              "publishTime": 1075910400007,
              "privilege": {
                "id": 4173190,
                "fee": 1,
                "payed": 0,
                "st": 0,
                "pl": 0,
                "dl": 0,
                "sp": 0,
                "cp": 0,
                "subp": 0,
                "cs": false,
                "maxbr": 320000,
                "fl": 0,
                "toast": false,
                "flag": 1284,
                "preSell": false
              }
            }
          ],
          "relatedInfo": null,
          "videoUserLiveInfo": null,
          "vid": "29D6E2F9BFDCAA3B53B53B82938F075A",
          "durationms": 230144,
          "playTime": 286114,
          "praisedCount": 1445,
          "praised": false,
          "subscribed": false
        }
      },
      {
        "type": 1,
        "displayed": false,
        "alg": "onlineHotGroup",
        "extAlg": null,
        "data": {
          "alg": "onlineHotGroup",
          "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
          "threadId": "R_VI_62_356ADBC5FA15AA806DC7770C5A4094D8",
          "coverUrl": "https://p2.music.126.net/phEgG7Wri_3ld2Le_5BDGw==/109951163922726329.jpg",
          "height": 360,
          "width": 640,
          "title": "荷东猛士的士高合集，恼人的秋风原唱- ABBA - Gimme Gimme Gimme",
          "description": "",
          "commentCount": 98,
          "shareCount": 578,
          "resolutions": [
            {
              "resolution": 240,
              "size": 28971350
            }
          ],
          "creator": {
            "defaultAvatar": false,
            "province": 130000,
            "authStatus": 0,
            "followed": false,
            "avatarUrl": "http://p1.music.126.net/QRx0jqFlFHYdZkaX3bi-3A==/7863707162972394.jpg",
            "accountStatus": 0,
            "gender": 1,
            "city": 130100,
            "birthday": 631123200000,
            "userId": 71723824,
            "userType": 0,
            "nickname": "摄绘音乐",
            "signature": "个人主页http://8z7.cn/23Y3Kb \n我的微信公众：故园之怀旧。\n我在腾讯视频的名字是-怀旧摄绘人",
            "description": "",
            "detailDescription": "",
            "avatarImgId": 7863707162972394,
            "backgroundImgId": 2002210674180200,
            "backgroundUrl": "http://p1.music.126.net/45Nu4EqvFqK_kQj6BkPwcw==/2002210674180200.jpg",
            "authority": 0,
            "mutual": false,
            "expertTags": null,
            "experts": null,
            "djStatus": 10,
            "vipType": 0,
            "remarkName": null,
            "avatarImgIdStr": "7863707162972394",
            "backgroundImgIdStr": "2002210674180200"
          },
          "urlInfo": {
            "id": "356ADBC5FA15AA806DC7770C5A4094D8",
            "url": "http://vodkgeyttp9.vod.126.net/vodkgeyttp8/PGreHMNo_2370890908_sd.mp4?ts=1606148735&rid=EBDC3C7B1DF9701FA908FF8A813C97FF&rl=3&rs=wCCgCQbGdYuoJihycajELFSPEuLbCPIG&sign=51e35d55415dc9e3824d16bfba41224e&ext=bzWgNsHRGvJOZhCYx7pMtGcSDzZ2zG%2BEHubggpOkr54mxiEgvvW7HF4B7MTnacmE7%2ByXRc%2B3sS%2BMzFpdR1bkASDffdVTrA4X5ga7tt7pMMg5CbbmkL8iESfDTImo9waPSHg%2FkqSQovd42XuKSE%2F%2F85zNLMd7NGyFDBls4PpkwntuYmFRyATPkEbx7ETq2Pml6sOPWBuNjj4tfHaSHEoL8IVvELaDBo07DuAC%2FfbOqwQCiuQJktkktywPe6SBhwIy",
            "size": 28971350,
            "validityTime": 1200,
            "needPay": false,
            "payInfo": null,
            "r": 240
          },
          "videoGroup": [
            {
              "id": 57106,
              "name": "欧美现场",
              "alg": "groupTagRank"
            },
            {
              "id": 57108,
              "name": "流行现场",
              "alg": "groupTagRank"
            },
            {
              "id": 1100,
              "name": "音乐现场",
              "alg": "groupTagRank"
            },
            {
              "id": 58100,
              "name": "现场",
              "alg": "groupTagRank"
            },
            {
              "id": 5100,
              "name": "音乐",
              "alg": "groupTagRank"
            }
          ],
          "previewUrl": null,
          "previewDurationms": 0,
          "hasRelatedGameAd": false,
          "markTypes": null,
          "relateSong": [
            {
              "name": "Gimme! Gimme! Gimme!",
              "id": 27236946,
              "pst": 0,
              "t": 0,
              "ar": [
                {
                  "id": 85506,
                  "name": "ABBA",
                  "tns": [],
                  "alias": []
                }
              ],
              "alia": [],
              "pop": 25,
              "st": 0,
              "rt": "",
              "fee": 0,
              "v": 11,
              "crbt": null,
              "cf": "",
              "al": {
                "id": 2595253,
                "name": "1972-1982 - Singles Collection",
                "picUrl": "http://p3.music.126.net/HtibVWSalfnuc-aWaVA2lA==/6000034953355711.jpg",
                "tns": [],
                "pic": 6000034953355711
              },
              "dt": 292000,
              "h": {
                "br": 320000,
                "fid": 0,
                "size": 11717699,
                "vd": -2
              },
              "m": {
                "br": 192000,
                "fid": 0,
                "size": 7030705,
                "vd": -2
              },
              "l": {
                "br": 128000,
                "fid": 0,
                "size": 4687208,
                "vd": -2
              },
              "a": null,
              "cd": "1",
              "no": 39,
              "rtUrl": null,
              "ftype": 0,
              "rtUrls": [],
              "djId": 0,
              "copyright": 0,
              "s_id": 0,
              "rtype": 0,
              "rurl": null,
              "mst": 9,
              "cp": 0,
              "mv": 0,
              "publishTime": 923932800007,
              "privilege": {
                "id": 27236946,
                "fee": 0,
                "payed": 0,
                "st": 0,
                "pl": 320000,
                "dl": 999000,
                "sp": 7,
                "cp": 1,
                "subp": 1,
                "cs": false,
                "maxbr": 999000,
                "fl": 320000,
                "toast": false,
                "flag": 128,
                "preSell": false
              }
            }
          ],
          "relatedInfo": null,
          "videoUserLiveInfo": null,
          "vid": "356ADBC5FA15AA806DC7770C5A4094D8",
          "durationms": 303894,
          "playTime": 347203,
          "praisedCount": 1121,
          "praised": false,
          "subscribed": false
        }
      },
      {
        "type": 1,
        "displayed": false,
        "alg": "onlineHotGroup",
        "extAlg": null,
        "data": {
          "alg": "onlineHotGroup",
          "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
          "threadId": "R_VI_62_720D10F0010AC703B9FBC2F30DB7FB03",
          "coverUrl": "https://p2.music.126.net/byQnRd-EQjPy8Yg2T3d7PQ==/109951164492028362.jpg",
          "height": 1080,
          "width": 1920,
          "title": "高清 BLACKPINK BOOMBAYAH舞台160814 1080p60帧",
          "description": "超清 蓝光",
          "commentCount": 331,
          "shareCount": 287,
          "resolutions": [
            {
              "resolution": 240,
              "size": 60264919
            },
            {
              "resolution": 480,
              "size": 102200600
            },
            {
              "resolution": 720,
              "size": 151143702
            },
            {
              "resolution": 1080,
              "size": 204444884
            }
          ],
          "creator": {
            "defaultAvatar": false,
            "province": 320000,
            "authStatus": 0,
            "followed": false,
            "avatarUrl": "http://p1.music.126.net/CGkAv1s0RDW2Yn0NTwxwPQ==/1366692966181590.jpg",
            "accountStatus": 0,
            "gender": 0,
            "city": 320100,
            "birthday": 631123200000,
            "userId": 302804694,
            "userType": 0,
            "nickname": "KPOP音乐-",
            "signature": "b站号：KPOP音乐（大量更新）",
            "description": "",
            "detailDescription": "",
            "avatarImgId": 1366692966181590,
            "backgroundImgId": 2002210674180199,
            "backgroundUrl": "http://p1.music.126.net/VTW4vsN08vwL3uSQqPyHqg==/2002210674180199.jpg",
            "authority": 0,
            "mutual": false,
            "expertTags": null,
            "experts": null,
            "djStatus": 0,
            "vipType": 0,
            "remarkName": null,
            "avatarImgIdStr": "1366692966181590",
            "backgroundImgIdStr": "2002210674180199"
          },
          "urlInfo": {
            "id": "720D10F0010AC703B9FBC2F30DB7FB03",
            "url": "http://vodkgeyttp9.vod.126.net/vodkgeyttp8/xufgwSCR_2793003242_uhd.mp4?ts=1606148735&rid=EBDC3C7B1DF9701FA908FF8A813C97FF&rl=3&rs=VtMRbQyWWtufnywRVZXSCRYoqZUBFbqG&sign=3479ed3cadbba37d4e1e680d5f46dbf7&ext=bzWgNsHRGvJOZhCYx7pMtGcSDzZ2zG%2BEHubggpOkr54mxiEgvvW7HF4B7MTnacmE7%2ByXRc%2B3sS%2BMzFpdR1bkASDffdVTrA4X5ga7tt7pMMg5CbbmkL8iESfDTImo9waPSHg%2FkqSQovd42XuKSE%2F%2F85zNLMd7NGyFDBls4PpkwntuYmFRyATPkEbx7ETq2Pml6sOPWBuNjj4tfHaSHEoL8IVvELaDBo07DuAC%2FfbOqwQCiuQJktkktywPe6SBhwIy",
            "size": 204444884,
            "validityTime": 1200,
            "needPay": false,
            "payInfo": null,
            "r": 1080
          },
          "videoGroup": [
            {
              "id": 92105,
              "name": "BLACKPINK",
              "alg": "groupTagRank"
            },
            {
              "id": 1101,
              "name": "舞蹈",
              "alg": "groupTagRank"
            },
            {
              "id": 1100,
              "name": "音乐现场",
              "alg": "groupTagRank"
            },
            {
              "id": 58100,
              "name": "现场",
              "alg": "groupTagRank"
            },
            {
              "id": 5100,
              "name": "音乐",
              "alg": "groupTagRank"
            }
          ],
          "previewUrl": null,
          "previewDurationms": 0,
          "hasRelatedGameAd": false,
          "markTypes": null,
          "relateSong": [],
          "relatedInfo": null,
          "videoUserLiveInfo": null,
          "vid": "720D10F0010AC703B9FBC2F30DB7FB03",
          "durationms": 250404,
          "playTime": 682310,
          "praisedCount": 5469,
          "praised": false,
          "subscribed": false
        }
      },
      {
        "type": 1,
        "displayed": false,
        "alg": "onlineHotGroup",
        "extAlg": null,
        "data": {
          "alg": "onlineHotGroup",
          "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
          "threadId": "R_VI_62_710D6E79A760B20A792B67BB6C827A88",
          "coverUrl": "https://p2.music.126.net/vYabOvT1tPA1cvF-VnM86Q==/109951163744643144.jpg",
          "height": 1080,
          "width": 1920,
          "title": "一起走过的日子（汪小敏）",
          "description": "一起走过的日子（汪小敏）",
          "commentCount": 405,
          "shareCount": 2114,
          "resolutions": [
            {
              "resolution": 240,
              "size": 26358230
            },
            {
              "resolution": 480,
              "size": 45247989
            },
            {
              "resolution": 720,
              "size": 66733206
            },
            {
              "resolution": 1080,
              "size": 104204425
            }
          ],
          "creator": {
            "defaultAvatar": false,
            "province": 350000,
            "authStatus": 0,
            "followed": false,
            "avatarUrl": "http://p1.music.126.net/RfWVSVNi-zb3Gt1hUlvpBg==/109951163331847182.jpg",
            "accountStatus": 0,
            "gender": 1,
            "city": 350300,
            "birthday": -2209017600000,
            "userId": 1477030197,
            "userType": 0,
            "nickname": "第二次回眸s",
            "signature": "",
            "description": "",
            "detailDescription": "",
            "avatarImgId": 109951163331847180,
            "backgroundImgId": 109951163423817760,
            "backgroundUrl": "http://p1.music.126.net/cDmUkFuidndyvbmzAEN4qw==/109951163423817754.jpg",
            "authority": 0,
            "mutual": false,
            "expertTags": null,
            "experts": null,
            "djStatus": 0,
            "vipType": 0,
            "remarkName": null,
            "avatarImgIdStr": "109951163331847182",
            "backgroundImgIdStr": "109951163423817754",
            "avatarImgId_str": "109951163331847182"
          },
          "urlInfo": {
            "id": "710D6E79A760B20A792B67BB6C827A88",
            "url": "http://vodkgeyttp9.vod.126.net/vodkgeyttp8/vE5HLIGA_2207943092_uhd.mp4?ts=1606148735&rid=EBDC3C7B1DF9701FA908FF8A813C97FF&rl=3&rs=LFxgDNmAWRRnNmWsBTFaHCJOTaKYDzCR&sign=7683fe34432c38d5ecebe419b9c7e952&ext=bzWgNsHRGvJOZhCYx7pMtGcSDzZ2zG%2BEHubggpOkr54mxiEgvvW7HF4B7MTnacmE7%2ByXRc%2B3sS%2BMzFpdR1bkASDffdVTrA4X5ga7tt7pMMg5CbbmkL8iESfDTImo9waPSHg%2FkqSQovd42XuKSE%2F%2F85zNLMd7NGyFDBls4PpkwntuYmFRyATPkEbx7ETq2Pml6sOPWBuNjj4tfHaSHEoL8IVvELaDBo07DuAC%2FfbOqwQCiuQJktkktywPe6SBhwIy",
            "size": 104204425,
            "validityTime": 1200,
            "needPay": false,
            "payInfo": null,
            "r": 1080
          },
          "videoGroup": [
            {
              "id": -26926,
              "name": "#经典老歌 【 70-80-90 精选 】#",
              "alg": "groupTagRank"
            },
            {
              "id": 16180,
              "name": "刘德华",
              "alg": "groupTagRank"
            },
            {
              "id": 57105,
              "name": "粤语现场",
              "alg": "groupTagRank"
            },
            {
              "id": 57108,
              "name": "流行现场",
              "alg": "groupTagRank"
            },
            {
              "id": 1100,
              "name": "音乐现场",
              "alg": "groupTagRank"
            },
            {
              "id": 58100,
              "name": "现场",
              "alg": "groupTagRank"
            },
            {
              "id": 5100,
              "name": "音乐",
              "alg": "groupTagRank"
            }
          ],
          "previewUrl": null,
          "previewDurationms": 0,
          "hasRelatedGameAd": false,
          "markTypes": null,
          "relateSong": [
            {
              "name": "一起走过的日子 (粤)",
              "id": 29723028,
              "pst": 0,
              "t": 0,
              "ar": [
                {
                  "id": 3691,
                  "name": "刘德华",
                  "tns": [],
                  "alias": []
                }
              ],
              "alia": [
                "电影《至尊无上Ⅱ之永霸天下》主题曲"
              ],
              "pop": 100,
              "st": 0,
              "rt": null,
              "fee": 8,
              "v": 14,
              "crbt": null,
              "cf": "",
              "al": {
                "id": 3066282,
                "name": "Wonderful World 香港演唱会 2007",
                "picUrl": "http://p4.music.126.net/-6osWky_WObfAydYYiTvpA==/3236962232773608.jpg",
                "tns": [],
                "pic": 3236962232773608
              },
              "dt": 237000,
              "h": {
                "br": 320000,
                "fid": 0,
                "size": 9521153,
                "vd": -2
              },
              "m": {
                "br": 192000,
                "fid": 0,
                "size": 5712709,
                "vd": 705
              },
              "l": {
                "br": 128000,
                "fid": 0,
                "size": 3808487,
                "vd": -2
              },
              "a": null,
              "cd": "1",
              "no": 16,
              "rtUrl": null,
              "ftype": 0,
              "rtUrls": [],
              "djId": 0,
              "copyright": 2,
              "s_id": 0,
              "rtype": 0,
              "rurl": null,
              "mst": 9,
              "cp": 0,
              "mv": 0,
              "publishTime": 1201795200007,
              "privilege": {
                "id": 29723028,
                "fee": 8,
                "payed": 0,
                "st": 0,
                "pl": 128000,
                "dl": 0,
                "sp": 7,
                "cp": 1,
                "subp": 1,
                "cs": false,
                "maxbr": 320000,
                "fl": 128000,
                "toast": false,
                "flag": 128,
                "preSell": false
              }
            }
          ],
          "relatedInfo": null,
          "videoUserLiveInfo": null,
          "vid": "710D6E79A760B20A792B67BB6C827A88",
          "durationms": 259100,
          "playTime": 2065276,
          "praisedCount": 5636,
          "praised": false,
          "subscribed": false
        }
      },
      {
        "type": 1,
        "displayed": false,
        "alg": "onlineHotGroup",
        "extAlg": null,
        "data": {
          "alg": "onlineHotGroup",
          "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
          "threadId": "R_VI_62_6FE7B9CBA826F68A4B686AF75D90CFCE",
          "coverUrl": "https://p2.music.126.net/hkqHq8TCYTsS0qNJJJYIbA==/109951164468298337.jpg",
          "height": 1080,
          "width": 1920,
          "title": "【金泰妍】Begin Again 3 | 如果 & Blue & Gee",
          "description": "【金泰妍】Begin Again 3 | 如果 & Blue & Gee\n\n终于等到阿姆斯特丹场的了，最后一首泰妍唱Gee时，一下子回到了那个夏夜，地上铺着凉席，表哥左手拿着直板手机右手拿着一支耳机，人生中第一次韩文歌给了Gee，当时没感觉现在想想我表哥好潮啊[大哭]",
          "commentCount": 174,
          "shareCount": 551,
          "resolutions": [
            {
              "resolution": 240,
              "size": 110241978
            },
            {
              "resolution": 480,
              "size": 185399401
            },
            {
              "resolution": 720,
              "size": 273721463
            },
            {
              "resolution": 1080,
              "size": 447901560
            }
          ],
          "creator": {
            "defaultAvatar": false,
            "province": 1000000,
            "authStatus": 0,
            "followed": false,
            "avatarUrl": "http://p1.music.126.net/Y8FYDnk_RgTeFpQCiTsPRQ==/109951165423654012.jpg",
            "accountStatus": 0,
            "gender": 1,
            "city": 1010000,
            "birthday": 880992000000,
            "userId": 262627192,
            "userType": 204,
            "nickname": "崔阿琳",
            "signature": "Love for real.",
            "description": "",
            "detailDescription": "",
            "avatarImgId": 109951165423654020,
            "backgroundImgId": 109951164338983120,
            "backgroundUrl": "http://p1.music.126.net/_dJGoDRClDw4m3LUWO9DEQ==/109951164338983126.jpg",
            "authority": 0,
            "mutual": false,
            "expertTags": null,
            "experts": {
              "1": "音乐视频达人"
            },
            "djStatus": 10,
            "vipType": 11,
            "remarkName": null,
            "avatarImgIdStr": "109951165423654012",
            "backgroundImgIdStr": "109951164338983126",
            "avatarImgId_str": "109951165423654012"
          },
          "urlInfo": {
            "id": "6FE7B9CBA826F68A4B686AF75D90CFCE",
            "url": "http://vodkgeyttp9.vod.126.net/vodkgeyttp8/b64mdlfG_2771872933_uhd.mp4?ts=1606148735&rid=EBDC3C7B1DF9701FA908FF8A813C97FF&rl=3&rs=IOkVgNogJkugfMwEgEtFtKmDzzECKvWb&sign=b835b6172e27e7d1d7a2884267e1ac12&ext=bzWgNsHRGvJOZhCYx7pMtGcSDzZ2zG%2BEHubggpOkr54mxiEgvvW7HF4B7MTnacmE7%2ByXRc%2B3sS%2BMzFpdR1bkASDffdVTrA4X5ga7tt7pMMg5CbbmkL8iESfDTImo9waPSHg%2FkqSQovd42XuKSE%2F%2F85zNLMd7NGyFDBls4PpkwntuYmFRyATPkEbx7ETq2Pml6sOPWBuNjj4tfHaSHEoL8IVvELaDBo07DuAC%2FfbOqwQCiuQJktkktywPe6SBhwIy",
            "size": 447901560,
            "validityTime": 1200,
            "needPay": false,
            "payInfo": null,
            "r": 1080
          },
          "videoGroup": [
            {
              "id": -15151,
              "name": "#韩国-少女时代：손을 잡아요#",
              "alg": "groupTagRank"
            },
            {
              "id": 164123,
              "name": "金泰妍",
              "alg": "groupTagRank"
            },
            {
              "id": 1101,
              "name": "舞蹈",
              "alg": "groupTagRank"
            },
            {
              "id": 1100,
              "name": "音乐现场",
              "alg": "groupTagRank"
            },
            {
              "id": 58100,
              "name": "现场",
              "alg": "groupTagRank"
            },
            {
              "id": 5100,
              "name": "音乐",
              "alg": "groupTagRank"
            }
          ],
          "previewUrl": null,
          "previewDurationms": 0,
          "hasRelatedGameAd": false,
          "markTypes": null,
          "relateSong": [
            {
              "name": "Gee",
              "id": 29535435,
              "pst": 0,
              "t": 0,
              "ar": [
                {
                  "id": 126793,
                  "name": "少女时代",
                  "tns": [],
                  "alias": []
                }
              ],
              "alia": [],
              "pop": 100,
              "st": 0,
              "rt": null,
              "fee": 0,
              "v": 20,
              "crbt": null,
              "cf": "",
              "al": {
                "id": 3029876,
                "name": "THE BEST ~New Edition~",
                "picUrl": "http://p4.music.126.net/yPpy4WcbVcyb70rmRnUCqg==/2529976256578329.jpg",
                "tns": [],
                "pic": 2529976256578329
              },
              "dt": 202973,
              "h": {
                "br": 320000,
                "fid": 0,
                "size": 8122036,
                "vd": -60167
              },
              "m": {
                "br": 192000,
                "fid": 0,
                "size": 4873239,
                "vd": -57689
              },
              "l": {
                "br": 128000,
                "fid": 0,
                "size": 3248840,
                "vd": -56213
              },
              "a": null,
              "cd": "1",
              "no": 2,
              "rtUrl": null,
              "ftype": 0,
              "rtUrls": [],
              "djId": 0,
              "copyright": 2,
              "s_id": 0,
              "rtype": 0,
              "rurl": null,
              "mst": 9,
              "cp": 663018,
              "mv": 34056,
              "publishTime": 1413302400007,
              "privilege": {
                "id": 29535435,
                "fee": 0,
                "payed": 0,
                "st": 0,
                "pl": 320000,
                "dl": 999000,
                "sp": 7,
                "cp": 1,
                "subp": 1,
                "cs": false,
                "maxbr": 999000,
                "fl": 320000,
                "toast": false,
                "flag": 256,
                "preSell": false
              }
            }
          ],
          "relatedInfo": null,
          "videoUserLiveInfo": null,
          "vid": "6FE7B9CBA826F68A4B686AF75D90CFCE",
          "durationms": 1142378,
          "playTime": 713361,
          "praisedCount": 5018,
          "praised": false,
          "subscribed": false
        }
      },
      {
        "type": 1,
        "displayed": false,
        "alg": "onlineHotGroup",
        "extAlg": null,
        "data": {
          "alg": "onlineHotGroup",
          "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
          "threadId": "R_VI_62_28303EFC3052E605086494368324E428",
          "coverUrl": "https://p2.music.126.net/rC3juqjz82Nhdu8gR5-Wlg==/109951164539494320.jpg",
          "height": 720,
          "width": 1280,
          "title": "Jennie/Solo混剪 超燃踩点 一键换装",
          "description": null,
          "commentCount": 55,
          "shareCount": 469,
          "resolutions": [
            {
              "resolution": 240,
              "size": 35346052
            },
            {
              "resolution": 480,
              "size": 60503155
            },
            {
              "resolution": 720,
              "size": 70917062
            }
          ],
          "creator": {
            "defaultAvatar": false,
            "province": 420000,
            "authStatus": 0,
            "followed": false,
            "avatarUrl": "http://p1.music.126.net/b4PTrZY-sB5c7jVgjjI3Mw==/109951164529793093.jpg",
            "accountStatus": 0,
            "gender": 2,
            "city": 420100,
            "birthday": 1514736000000,
            "userId": 1809847554,
            "userType": 204,
            "nickname": "王小MOMO2019",
            "signature": "B站：王小MOMO\n微博：王小MOMO2019\n KPOP相关 男团女团/数据排行/音乐榜单",
            "description": "",
            "detailDescription": "",
            "avatarImgId": 109951164529793090,
            "backgroundImgId": 109951162868126480,
            "backgroundUrl": "http://p1.music.126.net/_f8R60U9mZ42sSNvdPn2sQ==/109951162868126486.jpg",
            "authority": 0,
            "mutual": false,
            "expertTags": null,
            "experts": {
              "1": "音乐视频达人"
            },
            "djStatus": 0,
            "vipType": 0,
            "remarkName": null,
            "avatarImgIdStr": "109951164529793093",
            "backgroundImgIdStr": "109951162868126486",
            "avatarImgId_str": "109951164529793093"
          },
          "urlInfo": {
            "id": "28303EFC3052E605086494368324E428",
            "url": "http://vodkgeyttp9.vod.126.net/cloudmusic/NItonSYR_2831451662_shd.mp4?ts=1606148735&rid=EBDC3C7B1DF9701FA908FF8A813C97FF&rl=3&rs=zgBgcRdzIjiXSUbaholKSRSKwAtmBdGT&sign=e79a2f901b1893a1e6e2a103e7e26b32&ext=bzWgNsHRGvJOZhCYx7pMtGcSDzZ2zG%2BEHubggpOkr54mxiEgvvW7HF4B7MTnacmE7%2ByXRc%2B3sS%2BMzFpdR1bkASDffdVTrA4X5ga7tt7pMMg5CbbmkL8iESfDTImo9waPSHg%2FkqSQovd42XuKSE%2F%2F85zNLMd7NGyFDBls4PpkwntuYmFRyATPkEbx7ETq2Pml6sOPWBuNjj4tfHaSHEoL8IVvELaDBo07DuAC%2FfbOqwQCiuQJktkktywPe6SBhwIy",
            "size": 70917062,
            "validityTime": 1200,
            "needPay": false,
            "payInfo": null,
            "r": 720
          },
          "videoGroup": [
            {
              "id": -8013,
              "name": "#人气飙升榜#",
              "alg": "groupTagRank"
            },
            {
              "id": 3107,
              "name": "混剪",
              "alg": "groupTagRank"
            },
            {
              "id": 1100,
              "name": "音乐现场",
              "alg": "groupTagRank"
            },
            {
              "id": 58100,
              "name": "现场",
              "alg": "groupTagRank"
            },
            {
              "id": 5100,
              "name": "音乐",
              "alg": "groupTagRank"
            }
          ],
          "previewUrl": null,
          "previewDurationms": 0,
          "hasRelatedGameAd": false,
          "markTypes": null,
          "relateSong": [
            {
              "name": "SOLO (BLACKPINK ARENA TOUR 2018 \"SPECIAL FINAL IN KYOCERA DOME OSAKA\")",
              "id": 1352975734,
              "pst": 0,
              "t": 0,
              "ar": [
                {
                  "id": 12061232,
                  "name": "JENNIE",
                  "tns": [],
                  "alias": []
                }
              ],
              "alia": [],
              "pop": 100,
              "st": 0,
              "rt": "",
              "fee": 1,
              "v": 8,
              "crbt": null,
              "cf": "",
              "al": {
                "id": 75905848,
                "name": "BLACKPINK ARENA TOUR 2018 \"SPECIAL FINAL IN KYOCERA DOME OSAKA\"",
                "picUrl": "http://p3.music.126.net/bwEaVcgfEZudTn60PPRYNQ==/109951163938325636.jpg",
                "tns": [],
                "pic_str": "109951163938325636",
                "pic": 109951163938325630
              },
              "dt": 170733,
              "h": {
                "br": 320000,
                "fid": 0,
                "size": 6831587,
                "vd": 0
              },
              "m": {
                "br": 192000,
                "fid": 0,
                "size": 4098969,
                "vd": 0
              },
              "l": {
                "br": 128000,
                "fid": 0,
                "size": 2732661,
                "vd": 0
              },
              "a": null,
              "cd": "01",
              "no": 7,
              "rtUrl": null,
              "ftype": 0,
              "rtUrls": [],
              "djId": 0,
              "copyright": 0,
              "s_id": 0,
              "rtype": 0,
              "rurl": null,
              "mst": 9,
              "cp": 457010,
              "mv": 0,
              "publishTime": 0,
              "privilege": {
                "id": 1352975734,
                "fee": 1,
                "payed": 0,
                "st": 0,
                "pl": 0,
                "dl": 0,
                "sp": 0,
                "cp": 0,
                "subp": 0,
                "cs": false,
                "maxbr": 999000,
                "fl": 0,
                "toast": false,
                "flag": 1093,
                "preSell": false
              }
            }
          ],
          "relatedInfo": null,
          "videoUserLiveInfo": null,
          "vid": "28303EFC3052E605086494368324E428",
          "durationms": 168115,
          "playTime": 582971,
          "praisedCount": 4026,
          "praised": false,
          "subscribed": false
        }
      },
      {
        "type": 1,
        "displayed": false,
        "alg": "onlineHotGroup",
        "extAlg": null,
        "data": {
          "alg": "onlineHotGroup",
          "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
          "threadId": "R_VI_62_E3A79C1A32BF33F4304B2FA85C5BA85C",
          "coverUrl": "https://p2.music.126.net/B_dEzvQUovumNu98OE4mQA==/109951164984033177.jpg",
          "height": 1080,
          "width": 1920,
          "title": "【EXO】上瘾(Overdose) 好看到可以封神的一场舞台了",
          "description": "【EXO】上瘾(Overdose) 好看到可以封神的一场舞台了",
          "commentCount": 61,
          "shareCount": 141,
          "resolutions": [
            {
              "resolution": 240,
              "size": 60996169
            },
            {
              "resolution": 480,
              "size": 134327714
            },
            {
              "resolution": 720,
              "size": 201917677
            },
            {
              "resolution": 1080,
              "size": 194414747
            }
          ],
          "creator": {
            "defaultAvatar": false,
            "province": 430000,
            "authStatus": 0,
            "followed": false,
            "avatarUrl": "http://p1.music.126.net/wY8vzAkBpKaMNthzcE_32w==/109951164831222498.jpg",
            "accountStatus": 0,
            "gender": 0,
            "city": 430100,
            "birthday": -2209017600000,
            "userId": 1671022295,
            "userType": 0,
            "nickname": "欣欣_LtOw",
            "signature": "",
            "description": "",
            "detailDescription": "",
            "avatarImgId": 109951164831222500,
            "backgroundImgId": 109951162868126480,
            "backgroundUrl": "http://p1.music.126.net/_f8R60U9mZ42sSNvdPn2sQ==/109951162868126486.jpg",
            "authority": 0,
            "mutual": false,
            "expertTags": null,
            "experts": null,
            "djStatus": 0,
            "vipType": 0,
            "remarkName": null,
            "avatarImgIdStr": "109951164831222498",
            "backgroundImgIdStr": "109951162868126486",
            "avatarImgId_str": "109951164831222498"
          },
          "urlInfo": {
            "id": "E3A79C1A32BF33F4304B2FA85C5BA85C",
            "url": "http://vodkgeyttp9.vod.126.net/vodkgeyttp8/Mh35Y7Pa_2998800254_uhd.mp4?ts=1606148735&rid=EBDC3C7B1DF9701FA908FF8A813C97FF&rl=3&rs=SynzlqocOkZXeKPrvLzNYIncMbnkCsmK&sign=02cbbbe60056cbc716a88bc79ff76c24&ext=bzWgNsHRGvJOZhCYx7pMtGcSDzZ2zG%2BEHubggpOkr54mxiEgvvW7HF4B7MTnacmE7%2ByXRc%2B3sS%2BMzFpdR1bkASDffdVTrA4X5ga7tt7pMMg5CbbmkL8iESfDTImo9waPSHg%2FkqSQovd42XuKSE%2F%2F85zNLMd7NGyFDBls4PpkwntuYmFRyATPkEbx7ETq2Pml6sOPWBuNjj4tfHaSHEoL8IVvELaDBo07DuAC%2FfbOqwQCiuQJktkktywPe6SBhwIy",
            "size": 194414747,
            "validityTime": 1200,
            "needPay": false,
            "payInfo": null,
            "r": 1080
          },
          "videoGroup": [
            {
              "id": -16848,
              "name": "#1M舞室BGM练习(1 MILLION)(11月更新)#",
              "alg": "groupTagRank"
            },
            {
              "id": 10115,
              "name": "EXO",
              "alg": "groupTagRank"
            },
            {
              "id": 57107,
              "name": "韩语现场",
              "alg": "groupTagRank"
            },
            {
              "id": 59108,
              "name": "巡演现场",
              "alg": "groupTagRank"
            },
            {
              "id": 57108,
              "name": "流行现场",
              "alg": "groupTagRank"
            },
            {
              "id": 1100,
              "name": "音乐现场",
              "alg": "groupTagRank"
            },
            {
              "id": 58100,
              "name": "现场",
              "alg": "groupTagRank"
            },
            {
              "id": 5100,
              "name": "音乐",
              "alg": "groupTagRank"
            }
          ],
          "previewUrl": null,
          "previewDurationms": 0,
          "hasRelatedGameAd": false,
          "markTypes": null,
          "relateSong": [
            {
              "name": "上瘾 (OVERDOSE)",
              "id": 32405705,
              "pst": 0,
              "t": 0,
              "ar": [
                {
                  "id": 855488,
                  "name": "罗艺恒",
                  "tns": [],
                  "alias": []
                }
              ],
              "alia": [
                "原唱：EXO"
              ],
              "pop": 95,
              "st": 0,
              "rt": null,
              "fee": 0,
              "v": 8,
              "crbt": null,
              "cf": "",
              "al": {
                "id": 3154979,
                "name": "上瘾",
                "picUrl": "http://p3.music.126.net/8GB3fw1xwivxX5cqCHdKhQ==/2923601420161962.jpg",
                "tns": [],
                "pic": 2923601420161962
              },
              "dt": 211539,
              "h": {
                "br": 320000,
                "fid": 0,
                "size": 8463716,
                "vd": -13300
              },
              "m": {
                "br": 192000,
                "fid": 0,
                "size": 5078247,
                "vd": -10700
              },
              "l": {
                "br": 128000,
                "fid": 0,
                "size": 3385512,
                "vd": -9200
              },
              "a": null,
              "cd": "1",
              "no": 1,
              "rtUrl": null,
              "ftype": 0,
              "rtUrls": [],
              "djId": 0,
              "copyright": 0,
              "s_id": 0,
              "rtype": 0,
              "rurl": null,
              "mst": 9,
              "cp": 0,
              "mv": 0,
              "publishTime": 1409846400000,
              "privilege": {
                "id": 32405705,
                "fee": 0,
                "payed": 0,
                "st": 0,
                "pl": 320000,
                "dl": 320000,
                "sp": 7,
                "cp": 1,
                "subp": 1,
                "cs": false,
                "maxbr": 320000,
                "fl": 320000,
                "toast": false,
                "flag": 128,
                "preSell": false
              }
            }
          ],
          "relatedInfo": null,
          "videoUserLiveInfo": null,
          "vid": "E3A79C1A32BF33F4304B2FA85C5BA85C",
          "durationms": 261108,
          "playTime": 237026,
          "praisedCount": 2497,
          "praised": false,
          "subscribed": false
        }
      }
    ];
    let videoList = this.data.videoList;
    //将视频最新的数据更新到原有视频列表数据中
    videoList.push(...newVideoList);
    this.setData({
      videoList
    })
  },
  //跳转至搜索页面
  toSearch(){
    wx.navigateTo({
      url:'/pages/search/search'
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    console.log('页面的下拉刷新');
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    console.log('页面的上拉触底 ');
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function ({from}) {
    //from:button：按钮分享，menu：右上角转发
    console.log(from);
    return {
      title:'云音乐',
      page:'/pages/video/video',
      imageUrl:'/static/images/nvsheng.jpg'
    }
  }
})